home *** CD-ROM | disk | FTP | other *** search
/ Interactive Preview: Enemy of the State / Interactive Preview: Enemy of the State.iso / pc / main.dxr / 00561_open s10 mov.ls < prev    next >
Encoding:
Text File  |  1998-11-19  |  755 b   |  29 lines

  1. on mouseDown me
  2.   if the movieRate of sprite 10 = 1 then
  3.     nothing()
  4.   else
  5.     set the memberNum of sprite the spriteNum of me to 57
  6.     set gapH to the mouseH - the locH of sprite the spriteNum of me
  7.     set gapV to the mouseV - the locV of sprite the spriteNum of me
  8.     repeat while the stillDown
  9.       set the loc of sprite the spriteNum of me to point(the mouseH - gapH, the mouseV - gapV)
  10.       updateStage()
  11.     end repeat
  12.   end if
  13. end
  14.  
  15. on mouseUp me
  16.   if the visible of sprite 10 = 1 then
  17.     nothing()
  18.   else
  19.     if the doubleClick then
  20.       set the visible of sprite 9 to 1
  21.       set the visible of sprite 10 to 1
  22.       repeat with x = 20 to 27
  23.         set the visible of sprite x to 1
  24.       end repeat
  25.       go(407)
  26.     end if
  27.   end if
  28. end
  29.